
@if A%1 == A goto usage 

:again
@if A%1 == A goto finish 
@if exist samples\%1 goto rungiven 
@goto runnum
 
:rungiven
@d:\j2sdk1.4.2_10\bin\java -cp classes dm.Main samples/%1 | more
@goto finish

:runnum
@d:\j2sdk1.4.2_10\bin\java -cp classes dm.Main samples/s%1.txt | more

@pause

@shift
@goto again

:usage
@echo run (int or filename)+
:finish
